//关闭弹出层的功能，配合文件设定的样式命名
 $('.ajax_content .close').click(
    function(){
        $('.ajax_content').removeClass('show')
        $('.ajax_content .close ').hide()
        $('.ajax_content .info ').hide()
        $('.ajax_content_bg ').delay(1000).hide()
    }
)


//点击背景关闭
$('.ajax_content_bg ').click(
    function(){
        $('.ajax_content').removeClass('show')
        $('.ajax_content .info').html()
        $('.ajax_content_bg ').hide()
        $('.ajax_content .close ').hide()
        $('.ajax_content .info ').hide()
    }
)


function close_ajax_content()
{
    $('.ajax_content').removeClass('show')
    $('.ajax_content .info').html()
    $('.ajax_content_bg ').hide()
    $('.ajax_content .close ').hide()
    $('.ajax_content .info ').hide()
}




//执行弹出逻辑
function show_message_box(url){


        $('.ajax_content').addClass('show')
        $('.ajax_content_bg ').show()
        $('.ajax_content .close ').show()
        $('.ajax_content .info ').show()


        $.get(url,null,function (msg) {
            //ajax请求,请求后执行下面代码
            msg=$.trim(msg);

            $(".ajax_content .info").empty( );
            $(".ajax_content .info").append(msg);
            $('.ajax_content .info').html(msg)

            //console.log("msg",msg)
        });

}